package com.bianguo.android.functiondemo.view.activity;

import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.bianguo.android.functiondemo.R;

import butterknife.OnClick;

public class CustomActivity extends BaseActivity {

    @Override
    public int layoutId() {
        return R.layout.activity_custom;
    }

    @Override
    public void initView(@Nullable Bundle savedInstanceState) {

    }

    @OnClick({R.id.custom_text, R.id.custom_move})
    public void onClickBk(View view) {
        switch (view.getId()) {
            case R.id.custom_text:
                showToast(((TextView)view).getText().toString().trim());
                break;
            case R.id.custom_move:
                showToast("你好购物车");
                break;
        }
    }
}
